#pragma once
#include"Color.h"
class Canvas
{
public:
	Canvas();
	~Canvas();
	static void Init(int width, int height);
	static void Destroy();
	static void Clear(Color color = Color(0, 0, 0));
	static void Show();
	static void AntiAliasing();
	static void SetPixel(int x, int y, Color c);
	static void SetPixel(int x, int y, Color c, double depth);
	static void SetPixel(int x, int y, double depth);

public:
	static int width;
	static int height;
	static double** depthBuffer;
	static Color** colorBuffer;
	static bool isDoubleBuffer;
};

